<?php
/**
 * Created by JetBrains PhpStorm.
 * User: ionafan2
 * Date: 04.06.13
 * Time: 19:46
 * To change this template use File | Settings | File Templates.
 */

namespace Ionafan2\GetonlyimgBundle\Tests\Services;
use Ionafan2\GetonlyimgBundle\Services\Parser;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;


class ParserTestCase extends WebTestCase
{

    protected $container;

    protected function setUp()
    {
        $client = static::createClient();
        $this->container = $client->getContainer();
    }

    protected function tearDown()
    {
        unset($this->container);
    }

    public function testServiceAvailableInContainer()
    {
        /** @var $imageProcessor Parser */
        $parser = $this->container->get('parser');

        $this->assertTrue($parser instanceof Parser);
    }

}
